package com.example.demodao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosszhang
 * @since 2023-01-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbItem对象", description="")
public class TbItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = " 主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品数量 ")
    private Integer quantity;

    @ApiModelProperty(value = "商品单价 ")
    private BigDecimal price;

    @ApiModelProperty(value = "商品优惠 ")
    @TableField("couponPrice")
    private BigDecimal couponPrice;

    @ApiModelProperty(value = "商品运费  ")
    @TableField("deliveryPrice")
    private BigDecimal deliveryPrice;


}
